package com.grad.why.studentsystem.mapper;

import com.grad.why.studentsystem.domain.Teacherposition;
import com.grad.why.studentsystem.domain.TeacherpositionExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherpositionMapper {
    int countByExample(TeacherpositionExample example);

    int deleteByExample(TeacherpositionExample example);

    int deleteByPrimaryKey(Integer positionid);

    int insert(Teacherposition record);

    int insertSelective(Teacherposition record);

    List<Teacherposition> selectByExample(TeacherpositionExample example);

    Teacherposition selectByPrimaryKey(Integer positionid);

    int updateByExampleSelective(@Param("record") Teacherposition record, @Param("example") TeacherpositionExample example);

    int updateByExample(@Param("record") Teacherposition record, @Param("example") TeacherpositionExample example);

    int updateByPrimaryKeySelective(Teacherposition record);

    int updateByPrimaryKey(Teacherposition record);

    int getPositionIdByPositionName(@Param("positionName") String positionName);
}